package com.jiejie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zj
 * @since 2022-10-31
 */
@TableName("`order`")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    //("订单id")
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    //("订单编号")
    private String orderNum;

   //("用户id")
    private Integer customerId;

  //("电影id")
    private Integer movieId;

   //("排片id")
    private Integer scheduleId;

  //("订单价格")
    private Double orderAdjustedPrice;

   //("座位号")
    private String orderSeatNum;

    //("优惠券id")
    private Integer customerAndCouponId;

  //("优惠金额")
    private Double couponAmount;

   //("下单时间")
    private LocalDateTime orderCreatetime;

    private LocalDateTime orderUpdateTime;

    //("订单状态")
    private Integer orderStatus;

    private Integer orderVersion;

    private String orther1;

    private String orther2;

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }
    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }
    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }
    public Integer getMovieId() {
        return movieId;
    }

    public void setMovieId(Integer movieId) {
        this.movieId = movieId;
    }
    public Integer getScheduleId() {
        return scheduleId;
    }

    public void setScheduleId(Integer scheduleId) {
        this.scheduleId = scheduleId;
    }
    public Double getOrderAdjustedPrice() {
        return orderAdjustedPrice;
    }

    public void setOrderAdjustedPrice(Double orderAdjustedPrice) {
        this.orderAdjustedPrice = orderAdjustedPrice;
    }
    public String getOrderSeatNum() {
        return orderSeatNum;
    }

    public void setOrderSeatNum(String orderSeatNum) {
        this.orderSeatNum = orderSeatNum;
    }
    public Integer getCustomerAndCouponId() {
        return customerAndCouponId;
    }

    public void setCustomerAndCouponId(Integer customerAndCouponId) {
        this.customerAndCouponId = customerAndCouponId;
    }
    public Double getCouponAmount() {
        return couponAmount;
    }

    public void setCouponAmount(Double couponAmount) {
        this.couponAmount = couponAmount;
    }
    public LocalDateTime getOrderCreatetime() {
        return orderCreatetime;
    }

    public void setOrderCreatetime(LocalDateTime orderCreatetime) {
        this.orderCreatetime = orderCreatetime;
    }
    public LocalDateTime getOrderUpdateTime() {
        return orderUpdateTime;
    }

    public void setOrderUpdateTime(LocalDateTime orderUpdateTime) {
        this.orderUpdateTime = orderUpdateTime;
    }
    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }
    public Integer getOrderVersion() {
        return orderVersion;
    }

    public void setOrderVersion(Integer orderVersion) {
        this.orderVersion = orderVersion;
    }
    public String getOrther1() {
        return orther1;
    }

    public void setOrther1(String orther1) {
        this.orther1 = orther1;
    }
    public String getOrther2() {
        return orther2;
    }

    public void setOrther2(String orther2) {
        this.orther2 = orther2;
    }

    @Override
    public String toString() {
        return "Order{" +
            "orderId=" + orderId +
            ", orderNum=" + orderNum +
            ", customerId=" + customerId +
            ", movieId=" + movieId +
            ", scheduleId=" + scheduleId +
            ", orderAdjustedPrice=" + orderAdjustedPrice +
            ", orderSeatNum=" + orderSeatNum +
            ", customerAndCouponId=" + customerAndCouponId +
            ", couponAmount=" + couponAmount +
            ", orderCreatetime=" + orderCreatetime +
            ", orderUpdateTime=" + orderUpdateTime +
            ", orderStatus=" + orderStatus +
            ", orderVersion=" + orderVersion +
            ", orther1=" + orther1 +
            ", orther2=" + orther2 +
        "}";
    }
}
